<%--
  Created by IntelliJ IDEA.
  User: 张小强
  Date: 2022-07-12
  Time: 11:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<!DOCTYPE html>
<html>
<head>
<script>
	function login(){
		var str = session.getAttribute("contact");
		alert(str);
		if(str.equals("users"))
			window.location.href="../21201130_岳志杰/user.jsp";
		else
			window.location.href="../21201130_岳志杰/admin.jsp";
	}
</script>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<link href="Image/favicon.ico" rel="icon">
<title>登录界面</title>
<link rel="stylesheet" href="assets/libs/layui/css/layui.css" />
<link rel="stylesheet" href="assets/module/admin.css?v=318">
<!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
<style>
body {
	background-image: url("../Image/bg-login.jpg");
	background-repeat: no-repeat;
	background-size: cover;
	min-height: 100vh;
}

body:before {
	content: "";
	background-color: rgba(0, 0, 0, .2);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.layui-btn {
	display: inline-block;
	height: 38px;
	line-height: 38px;
	padding: 0 18px;
	background-color: #009688;
	color: #fff;
	white-space: nowrap;
	text-align: center;
	font-size: 14px;
	border: none;
	border-radius: 2px;
	cursor: pointer
}

.login-wrapper {
	max-width: 420px;
	padding: 20px;
	margin: 0 auto;
	position: relative;
	box-sizing: border-box;
	z-index: 2;
}

.login-wrapper>.layui-form {
	padding: 25px 30px;
	background-color: #fff;
	box-shadow: 0 3px 6px -1px rgba(0, 0, 0, 0.19);
	box-sizing: border-box;
	border-radius: 4px;
}

.login-wrapper>.layui-form>h2 {
	color: #333;
	font-size: 18px;
	text-align: center;
	margin-bottom: 25px;
}

.layui-btn, .layui-disabled, .layui-icon, .layui-unselect {
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none
}

.layui-input, .layui-select, .layui-textarea {
	height: 38px;
	line-height: 1.3;
	line-height: 38px \9;
	border-width: 1px;
	border-style: solid;
	background-color: #fff;
	border-radius: 2px
}

.layui-form-item:after {
	content: '\20';
	clear: both;
	*zoom: 1;
	display: block;
	height: 0
}

.login-wrapper>.layui-form>.layui-form-item {
	margin-bottom: 25px;
	position: relative;
}

.login-wrapper>.layui-form>.layui-form-item:last-child {
	margin-bottom: 0;
}

.login-wrapper>.layui-form>.layui-form-item>.layui-input {
	height: 46px;
	line-height: 46px;
	border-radius: 2px !important;
}

.login-wrapper .layui-input-icon-group>.layui-input {
	padding-left: 46px;
}

.login-wrapper .layui-input-icon-group>.layui-icon {
	width: 46px;
	height: 46px;
	line-height: 46px;
	font-size: 20px;
	color: #909399;
	position: absolute;
	left: 0;
	top: 0;
	text-align: center;
}

.login-wrapper>.layui-form>.layui-form-item.login-captcha-group {
	padding-right: 135px;
}

.login-wrapper>.layui-form>.layui-form-item.login-captcha-group>.login-captcha
	{
	height: 46px;
	width: 120px;
	cursor: pointer;
	box-sizing: border-box;
	border: 1px solid #e6e6e6;
	border-radius: 2px !important;
	position: absolute;
	right: 0;
	top: 0;
}

.login-wrapper>.layui-form>.layui-form-item>.layui-form-checkbox {
	margin: 0 !important;
	padding-left: 25px;
}

.login-wrapper>.layui-form>.layui-form-item>.layui-form-checkbox>.layui-icon
	{
	width: 15px !important;
	height: 15px !important;
}

.login-wrapper>.layui-form .layui-btn-fluid {
	height: 48px;
	line-height: 48px;
	font-size: 16px;
	border-radius: 2px !important;
}

.login-wrapper>.layui-form>.layui-form-item.login-oauth-group>a>.layui-icon
	{
	font-size: 26px;
}

.login-copyright {
	color: #eee;
	padding-bottom: 20px;
	text-align: center;
	position: relative;
	z-index: 1;
}

@media screen and (min-height: 550px) {
	.login-wrapper {
		margin: -250px auto 0;
		position: absolute;
		top: 50%;
		left: 0;
		right: 0;
		width: 100%;
	}
	.login-copyright {
		position: absolute;
		bottom: 0;
		right: 0;
		left: 0;
	}
}

.layui-input {
	width: 250px;
}



.layui-btn {
	background-color: #5FB878;
	border-color: #5FB878;
	width: 330px;
}

.layui-link {
	color: #5FB878 !important;
	text-decoration: none;
	margin-top:100px;
}
.selected {
	display:none;
	

}
.man{
            display: inline-block;
            border:1px solid #ccc;
            width:16px;
            height: 16px;
            border-radius:2px;
            vertical-align: middle;
            margin-right: 5px;
            position: relative;
}
 label {
 	margin；10px;
 
}

.man:before{
            content: '';
            font-size: 0;
            width: 10px;
            height: 10px;
            background: grey;
            position: absolute;
            left:50%;
            top:50%;
            margin-left: -5px;
            margin-top: -5px;
            border-radius: 2px;
            display: none;
}
.selected:checked~.man:before{
            display: block;
}



</style>
</head>
<body>
	<div class="login-wrapper layui-anim layui-anim-scale layui-hide">
		<form class="layui-form">
			<h2>系统登录</h2>
			<div class="layui-form-item layui-input-icon-group">
				<i class="layui-icon layui-icon-username"></i> <input
					class="layui-input" name="username" placeholder="请输入登录账号"
					autocomplete="off" lay-verType="tips" lay-verify="required"
					required />
			</div>
			<div class="layui-form-item layui-input-icon-group">
				<i class="layui-icon layui-icon-password"></i> <input
					class="layui-input" name="password" placeholder="请输入登录密码"
					type="password" lay-verType="tips" lay-verify="required" required />
			</div>
			
			<div class = "layui-checked">
			<label>
			<input type = "radio" class = "selected" checked = "checked" id = "administrater" name = "contact" value="adminstrater">
			<span class = "man"></span>管理员
			</label>
			<label>
			<input type = "radio" class = "selected" id = "users" name = "contact" value = "users">
			<span class = "man"></span>用户
			</label>
			</div>
			<br>
			<br>
			<div class="layui-form-item">
				<a href="register.jsp" class="layui-link">注册账号</a>
			</div>

			

			<div class="layui-form-item">
				<button class="layui-btn layui-btn-fluid" lay-filter="loginSubmit"
					 onclick="login()">登录</button>
			</div>
			
		</form>
	</div>
	<div class="login-copyright">copyright © 2020 easyweb.vip all
		rights reserved.</div>
</body>
</html>
